package com.czxy.demo01;

import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        test01(i);
    }
    public static void test01(int a ){
        int b =3 ,c =5, d =7;

        if(a%b==0 && a%c==0 && a%d==0){
            System.out.println("能同时被"+b+","+c+","+d+"整除");
        }else if(a%b==0 && a%c==0 ){
            System.out.println(b+" "+c);
        }else if(a%c==0 && a%d==0){
            System.out.println(c+" "+d);
        }else if(a%b==0 && a%d==0){
            System.out.println(b+" "+d);
        }else {
            System.out.println("不能被3,5,7任一个整除");
        }
    }
}
